package nc.ui.ia.pre;

import java.util.Map;

import nc.ui.ia.jx.pub.ClientEventHandler;
import nc.ui.ia.jx.pub.ClientHelper;
import nc.ui.ia.jx.pub.ClientUIQueryDlg;
import nc.ui.trade.controller.IControllerBase;
import nc.ui.trade.manage.BillManageUI;
import nc.vo.jx.pub.JxPubConst;
import nc.vo.trade.pub.HYBillVO;

public class PreClientEventHandler extends ClientEventHandler {

	
	
	public PreClientEventHandler(BillManageUI billUI, IControllerBase control) {
		super(billUI, control);
	}

	protected ClientUIQueryDlg getQueryDlg() throws Exception {
		if (null == m_queryDlga) {
			m_queryDlga = new ClientUIQueryDlg(getBillUI(), null, _getCorp()
					.getPrimaryKey(), JxPubConst.BILL_NODE_PRE,
					_getOperator(), null, JxPubConst.BILL_TYPE_PRE);
		}
		return m_queryDlga;
	}
	
	protected HYBillVO getBillVO(Map<String, String> map) throws Exception{
		return ClientHelper.getBillVO(map, getUI(),JxPubConst.BILL_TYPE_PRE);
	}
}
